# add_subdirectory(yBasic)
# add_subdirectory(yTest)
# add_subdirectory(yMath)
set(BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})

file(GLOB_RECURSE SUBDIRS LIST_DIRECTORIES true RELATIVE ${BASE_DIR} ${BASE_DIR}/*)

# 遍历所有子目录并添加到cmake中
foreach(SUBDIR ${SUBDIRS})
	#检查是否为目录
	if(IS_DIRECTORY ${BASE_DIR}/${SUBDIR})
		# 添加子目录
		add_subdirectory(${SUBDIR})
	endif()
endforeach()
